<?if(isset($menu)):?>
	<a href="<?=site_url('filemanager/photos/');?>" class="btn btn-primary">Upload Student Photos</a>
	<br><br>
<?endif;?>

<link rel="stylesheet" type="text/css" media="screen" href="<?=base_url('assets/elfinder/css/elfinder.min.css');?>">
<link rel="stylesheet" type="text/css" media="screen" href="<?=base_url('assets/elfinder/css/theme.css');?>">
<script type="text/javascript" src="<?=base_url('assets/elfinder/js/elfinder.min.js');?>"></script>
<script type="text/javascript" charset="utf-8">
    $().ready(function() {
        var elf = $('#elfinder').elfinder({
            // lang: 'ru',             // language (OPTIONAL)
            url : '<?=site_url('filemanager/elfinder_init/'.$auth.'/'.$auth1);?>',  // connector URL (REQUIRED)
            resizable: false,
            uiOptions : {
			    // toolbar configuration
			    toolbar : [
			        ['back', 'forward'],
			        // ['reload'],
			        // ['home', 'up'],
			        ['mkdir', 'mkfile', 'upload'],
			        ['open', 'download', 'getfile'],
			        ['info'],
			        ['quicklook'],
			        ['copy', 'cut', 'paste'],
			        ['rm'],
			        ['duplicate', 'rename', 'edit', 'resize'],
			        ['extract', 'archive'],
			        ['search'],
			        ['view']
			    ],
			}
        }).elfinder('instance');            
    });
</script>

<!-- Element where elFinder will be created (REQUIRED) -->
<div class="clearfix"></div>
<div id="elfinder"></div>